import type {
  Image,
} from '@/types/consult'
import { request } from '@/utils/request'


export const uploadImage = (file: File) => {
  const fd = new FormData()
  fd.append('file', file)
  return request<Image>('/common/upload', 'POST', fd)
}
